package com.zxy.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.zxy.common.context.LocalDateTimeDeserializer;
import com.zxy.pojo.vo.CustomerDetailVO;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Builder;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 历史沟通记录实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("business_record")
public class BusinessRecord {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 关联商机ID，对应 customer_clue.id
     */
    private Long businessId;

    /**
     * 跟进内容（沟通纪要）
     */
    private String record;

    /**
     * 跟进状态
     */
    private String trackStatus;

    /**
     * 下次跟进时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime nextTime;

    /**
     * 关键事项
     */
    private String keyItems;

    /**
     * 创建人
     */
    private String createBy = "system";

    /**
     * 创建时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime updateTime;



    // 沟通重点
    private List<String> keys;


}